import React from 'react'

function useFangdou(fd,time=400) {
    let timer=null
  return (...gras)=>{
    clearTimeout(timer)
    timer=setTimeout(()=>{
    fd.apply(this,gras)
    },time)
  }
}

export default useFangdou
